<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="subscription.aspx.cs" Inherits="Doctor_subscription" Title="Featured Doctor" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>
<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
    <% if (fIE5)
       { %>
    <script>
        var reqState = 0;
        function showReqXML() {
            if (reqState == 0) {
                document.all.xmlReqData.style.display = "";
                document.all.xmlReq.innerText = "Hide Request XML";
                reqState = 1;
            } else {
                document.all.xmlReqData.style.display = 'none';
                document.all.xmlReq.innerText = "Show Request XML";
                reqState = 0;
            }
        }
        var resState = 0;
        function showResXML() {
            if (resState == 0) {
                document.all.xmlResData.style.display = "";
                document.all.xmlRes.innerText = "Hide Response XML";
                resState = 1;
            } else {
                document.all.xmlResData.style.display = 'none';
                document.all.xmlRes.innerText = "Show Response XML";
                resState = 0;
            }
        }
    </script>
    <%}%>
    <% if (Session["userID"].ToString() != "")
       { %>
    <div class="heading_inner">
        <div class="heading_topic">
            <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
        </div>
    </div>
    <%} %>
    <div class="cl"></div>
    <!---/ Left wrapper -->
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; text-align: justify; line-height: 20px">

                <tr>
                    <td align="left">
                        <asp:Label ID="lbl_drbid" runat="server" CssClass="page-heading" Text="Featured Doctor" Font-Underline="false" Font-Size="20px"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td align="left">
                        <asp:Wizard ID="WizardSubscription" DisplaySideBar="false" runat="server" ActiveStepIndex="1" OnFinishButtonClick="WizardSubscription_FinishButtonClick">
                            <WizardSteps>
                                <asp:WizardStep ID="WizardStep1" runat="server" Title="First Subscription Page" StepType="Start">
                                    <table cellpadding="0" cellspacing="0" border="0" width="0">
                                        <tr>
                                            <td>&nbsp;<strong>Select Speciality</strong>
                                            </td>
                                            <td style="width: 177px; height: 40px;">
                                                <asp:DropDownList ID="ddlSpeciality" runat="server" Width="173px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;<strong>Select Featured Doctor Type</strong>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlFeaturedDocType" runat="server" Width="173px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 222px">&nbsp;<strong>Select Subscription Type</strong>
                                            </td>
                                            <td style="width: 177px">
                                                <asp:DropDownList ID="ddlSubscriptionType" runat="server" Width="173px"></asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:WizardStep>
                                <asp:WizardStep ID="WizardStep2" runat="server" Title="Second Subscription Page">
                                    <table id="TABLE1" cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>
                                                <!--Total:-->
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txttotal" runat="server" Visible="false"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Card Number:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtcardnumber" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Exp. Month:</td>
                                            <td></td>
                                            <td>
                                                <select id="expmonth" name="expmonth" size="1">
                                                    <%WriteMonthOpts();%>
                                                </select></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Exp. Year:</td>
                                            <td></td>
                                            <td>
                                                <select id="expyear" name="expyear" size="1">
                                                    <%WriteYearOpts();%>
                                                </select></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Name<font color="red">*</font>:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Address<font color="red">*</font>:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtbaddrnum" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Zip<font color="red">*</font>:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtbzip" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Email<font color="red">*</font>:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                                        </tr>


                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>Installments:</td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtinstallments" runat="server"></asp:TextBox></td>
                                        </tr>

                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>
                                                <!--Start Date:-->
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtstartdate" Visible="false" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>
                                                <!--Periodicity:-->
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtperiodicity" Visible="false" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td>
                                                <!--Threshold:-->
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:TextBox ID="txtpbthreshold" Visible="false" runat="server"></asp:TextBox></td>
                                        </tr>

                                        <tr>
                                            <td align="center" colspan="4">
                                                <asp:Button ID="Submit" Visible="false" runat="server" CssClass="buttonclass" OnClick="Submit_Click" Text="Submit" /></td>
                                        </tr>
                                    </table>
                                </asp:WizardStep>
                                <asp:WizardStep ID="WizardStep3" runat="server" StepType="Finish" Title="Third Subscription page">
                                    <table border="1" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp;SSL API Version:</td>
                                            <td width="808">&nbsp;&nbsp;<%=LPTxn.getVersion()%></td>
                                        </tr>
                                        <% if (R_Time.Length > 0)
                                           { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Time:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Time%></td>
                                        </tr>
                                        <% } if (R_Ref.Length > 0)
                                           { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Reference:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Ref%></td>
                                        </tr>
                                        <% } if (R_Approved.Length > 0)
                                           { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Approval:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Approved%></td>
                                        </tr>
                                        <% } if (R_Code.Length > 0)
                                           { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Approval code:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Code%></td>
                                        </tr>
                                        <% } %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Error:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Error%></td>
                                        </tr>
                                        <%  if (R_OrderNum.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Order number:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_OrderNum%></td>
                                        </tr>
                                        <% } if (R_Message.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Message:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Message%></td>
                                        </tr>
                                        <% } if (R_AVS.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; AVS:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_AVS%></td>
                                        </tr>
                                        <% } if (R_Score.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Score:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Score%></td>
                                        </tr>
                                        <% } if (R_Tax.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Tax:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Tax%></td>
                                        </tr>
                                        <% } if (R_Shipping.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Shipping:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_Shipping%></td>
                                        </tr>
                                        <% } if (R_FraudCode.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; Fraud Code:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_FraudCode%></td>
                                        </tr>
                                        <% } if (R_ESD.Length > 0)
                                            { %>
                                        <tr>
                                            <td width="279" bgcolor="#c0c0c0" style="WIDTH: 279px">&nbsp; ESD:</td>
                                            <td width="808">&nbsp;&nbsp;<%=R_ESD%></td>
                                        </tr>
                                        <% } %>
                                    </table>
                                    <div>
                                        <% 
                                            if (fIE5)
                                            {
                                                // do DHTML	
                                        %>
                                        <a id="xmlReq" href="javascript:showReqXML()">Show Request XML</a>
                                        <div id="xmlReqData" style="display: none">
                                            <% 
			
            Response.Write("<textarea cols=60 readonly rows=20>" + order + "</textarea>"); 
                                            %>
                                        </div>
                                        <br />
                                        <a id="xmlRes" href="javascript:showResXML()">Show Response XML</a>
                                        <div id="xmlResData" style="display: none">
                                            <%
            string dbgXML;
            dbgXML = (resp.Replace("><", ">\r\n<")).Replace(">\r\n</", "></");
            Response.Write("<textarea  cols=70 readonly rows=14 wrap=off >" + dbgXML + "</textarea>");
        }
                                            %>
                                        </div>
                                        <% 
    /*
			if( dbg )
			{
			String dbgXML = ((order.Replace("<","&lt;")).Replace(">","&gt;")).Replace("\n","<BR>");
			Response.Write("SUBMITTED XML:" + dbgXML);
			dbgXML = ((resp.Replace("<","&lt;")).Replace(">","&gt;")).Replace("\n","<BR>");
			Response.Write("<br>SERVER RESPONSE XML:" + dbgXML);
			}
			*/
                                        %>
                                    </div>
                                </asp:WizardStep>
                            </WizardSteps>
                        </asp:Wizard>
                    </td>
                </tr>

            </table>
        </div>
    </div>
</asp:Content>
